package com.baomidou.mybatisplus.samples.quickstart.service;

import com.baomidou.mybatisplus.samples.quickstart.chain.UrlParamsHandlerChain;
import com.baomidou.mybatisplus.samples.quickstart.entity.ApiUrlParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChanelService {
    @Autowired
    UrlParamsHandlerChain urlParamsHandlerChain;

    public String getChanelUrl(){
        String handledUrl = urlParamsHandlerChain.handle(ApiUrlParam.builder().url("http://google.com").userId("guge").build());
        return handledUrl;
    }
}
